import React from 'react'
import { Router, Route, Switch } from 'react-router-dom'
import Login from './pages/Login/index.js'
import Layout from './pages/Layout/index.js';
import AuthRouter from './components/AuthRouter.js'
import 'antd/dist/antd.css';
import history from './utils/history.js';
export default function App() {
  return (
    <Router history={history}>
      <Switch>
        <AuthRouter path='/Layout' component={Layout}></AuthRouter>
        {/* <Route path="/Layout" component={Layout}></Route> */}
        <Route exact path="/" component={Login}></Route>
      </Switch>
    </Router>
  )
}
